package com.boboPlanet.user.component;

import com.boboPlanet.comm.entity.dto.LoginUserInfoDTO;
import org.springframework.context.ApplicationEvent;

/**
 * @Description: TODO 星球用户账号登录事件
 * @Author: mis_wu
 * @Date: 2023/7/29
 * @Company Login
 **/
public class PlanetUserAccountLoginEvent extends ApplicationEvent {

    private final LoginUserInfoDTO loginDto;
    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public PlanetUserAccountLoginEvent(Object source, LoginUserInfoDTO loginDto) {
        super(source);
        this.loginDto = loginDto;
    }

    public LoginUserInfoDTO getLoginParam(){
        return this.loginDto;
    }
}
